<?php

class WaybillTrunkModel extends BaseModel
{
    var $table  = 'waybill_sub_trunk';
    var $prikey = 'ws_tid';
    var $_name  = 'waybilltrunk';
    
    var $_relation  = array(
	    'belongs_to_waybill' => array(
	            'model'         => 'waybill',
	            'type'          => BELONGS_TO,
	            'foreign_key'   => 'wm_tid',
	            'reverse'       => 'has_trunk',
	     ),
     );
}
?>